<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="./css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./css/common.css" />
    <style type="text/css">
        .pushMessage {
            position: fixed;
            left: 0;
            top: 0;
            z-index: 1;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }

        .messageImg {
            width: 70%;
            display: block;
            margin: 0 auto;
            margin-top: 3rem;
        }

        .hideMessage {
            margin: 0 auto;
            margin-top: 2rem;
            width: 2.25rem;
        }
    </style>
</head>

<body>
    <div class="pushMessage" id="pushMessage">
        <img src="" class="messageImg" id="messageImg" />
        <img src="../image/close.png" onclick="hideMessageBox()" class="hideMessage" />
    </div>
</body>
<script type="text/javascript">
    var hideMessageBox;
    apiready = function () {
        var src = api.pageParam.imgSrc
        document.getElementById('messageImg').src = src
        //首页消息推送
        hideMessageBox = function () {
            api.closeFrame({
                name: 'dialog'
            });
        }
    }
</script>

</html>